package com.wnx.job.common.mapstruct;


import com.wnx.job.modules.jms.dto.CompanyParam;
import com.wnx.job.modules.jms.model.JmsCompany;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author wangnaixing
 */
@Mapper
public interface CompanyMapper {
    CompanyMapper INSTANCE = Mappers.getMapper(CompanyMapper.class);

    /**
     * 公司Dto转为公司模型
     * @param companyParam
     * @return*/


    JmsCompany toPojo(CompanyParam companyParam);

    /**
     * 公司模型转为Dto
     * @param pmsCompany
     * @return*/


    CompanyParam toDto(JmsCompany pmsCompany);

     /**
     *公司模型集合转公司Dto集合
     * @param tbCompanyList
     * @return
     */
    List<CompanyParam> toDtoList(List<JmsCompany> tbCompanyList);
}
